x=[234523,452,45,2,45,25,2,52,5,2,5,2345,5]

even=[]
odd=[]


while len(x)>0:
    a=x.pop()
    if a%2==0:
        even.append(a)
    else:
        odd.append(a)

print(even)
print(odd)

















'''
x=[34,2,3,55,44,11,9,0]
even=[]   
odd=[]
i=0
while i<len(x):    
    if x[i]%2==0:
        even.append(x[i])
    else:
        odd.append(x[i])
    i+=1
print(even)
print(odd)
'''